<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>综合咨询平台</title>
<link rel="stylesheet" href="<%=request.getContextPath() %>/resources/admin/css/list.css" type="text/css"></link>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/common.js"></script>
</head>
<body>
<div id="inside_content">
	<div id="dynamic">&nbsp;&nbsp;&nbsp; 用户管理</div>
	<div id="list_content">
		<div id="list_feature">
			<div class="op" onclick="to('<%=request.getContextPath() %>/user!toAdd.action?curPage=${request.curPage }')" title="新增"><img src="<%=request.getContextPath() %>/resources/admin/images/001.png"/></div>
			<div class="op" onclick="deteleSelected('是否删除选中用户？','<%=request.getContextPath() %>/company!deteleSelectedCompany.action','<%=request.getContextPath() %>/company!searchCompany.action')" title="删除"><img src="<%=request.getContextPath() %>/resources/admin/images/083.png"/></div>
		</div>
		<div id="hide_selet">条件</div>
	</div>
		<div id="show_content">
			<ul>
				<li id="nan">
					<ul>
						<li style="width: 8%;"><input id="cb_selectAll" type="checkbox" name="cb_selectAll" value="0"  class="checkbox"/> </li>
						<li style="width: 6%;">编号</li>
						<li style="width: 10%;">帐号</li>
						<li style="width: 7%;">姓名</li>
						<li style="width: 3%;">性别</li>
						<li style="width: 10%;">电话</li>
						<li style="width: 10%;">QQ</li>
						<li style="width: 10%;">email</li>
						<li style="width: 5%;">是否启用</li>
						<li style="width: 10%;">创建时间</li>
						<li style="width: 5%;">岗位名称</li>						
						<li>详情</li>
						<li>删除</li>
					</ul>
				</li>
				<c:forEach  var="user" items="${requestScope.resultMap.list}"  varStatus="xh">
					<li id="<c:if test='${xh.count%2==0 }'>nan_im_double</c:if><c:if test='${xh.count%2!=0 }'>nan_im_single</c:if>">
						<ul>
							<li style="width: 8%;"><input type="checkbox" value="${user.id}" name="cb_select" class="checkbox"  /></li>
							<li style="width: 6%;">${xh.count+request.xh}</li>
							<li style="width: 10%;">${user.username}</li>
							<li style="width: 7%;">${user.xm}</li>
							<li style="width: 3%;">
								<c:choose>  
									<c:when test="${user.sex != 0}">女</c:when>  
									<c:otherwise>男</c:otherwise>  
								</c:choose>  	
							</li>
							<li style="width: 10%;">${user.phone}</li>
							<li style="width: 10%;">${user.qq}</li>
							<li style="width: 10%;">${user.email}</li>
							<li style="width: 5%;">
								<c:choose>  
									<c:when test="${user.sfqy != 0 }">是</c:when>  
									<c:otherwise>否</c:otherwise>  
								</c:choose>							
							</li>
							<li style="width: 10%;"> ${user.f_creattime}</li>
							<li style="width: 5%;">${user.rolename}</li>	
							<li id="function_button"><img src="<%=request.getContextPath() %>/resources/admin/images/details_logo.png"/></li>
							<c:if test="${sessionScope.user.role_id < user.role_id}">
								<li id="function_button" onclick="detele('是否删除该用户？','<%=request.getContextPath() %>/user!deleteUserByUserid.action?id=${user.id}','<%=request.getContextPath() %>/user!searchUser.action?page=${request.curpage}')"><img src="<%=request.getContextPath() %>/resources/admin/images/delete_logo.png"/></li>
							</c:if>
							<c:if test="${sessionScope.user.role_id >= user.role_id}">
								<li></li>
							</c:if>
						</ul>
				</c:forEach>
			</ul>
			<div id="pageBar"  style=" ">${requestScope.pageBar }</div>
	</div>
</div>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/common.js"></script>
</body>
</html>